package net.paoding.rose.jade.statement.jexl.analysis.impl;


import net.paoding.rose.jade.statement.jexl.Jexl3Execute;
import net.paoding.rose.jade.statement.jexl.analysis.Analysis;

/**
 * 普通文本 解析
 * @author fusheng.zhang
 * @date 2022-03-05 16:24:15
 */
public class TxtAnalysis implements Analysis {

    /**
     * 普通文本
     */
    private final String txt;

    public TxtAnalysis(String txt) {
        this.txt = txt;
    }

    @Override
    public String toString() {
        return this.txt;
    }

    @Override
    public void execute(Jexl3Execute jexl3Execute) {
        jexl3Execute.setStr(this.txt);
    }

    public String getTxt() {
        return txt;
    }
}
